package ro.fortech.peaa.service.impl;

import java.util.List;

import ro.fortech.peaa.domain.Department;
import ro.fortech.peaa.repository.api.IDepartmentMapper;
import ro.fortech.peaa.service.api.IDepartmentManager;

/**
 * Implementation of the DepartmentManager.
 * 
 * @author andrei
 */
public class DepartmentManager implements IDepartmentManager {

	/** The Department Mapper. */
	private IDepartmentMapper departmentMapper;
	
	/**
	 * @param mapper the mapper to set
	 */
	public void setDepartmentMapper(IDepartmentMapper mapper) {
		this.departmentMapper = mapper;
	}

	@Override
	public void deleteDepartment(Department department) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Department find(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Department> findAll() {
		List<Department> departments = departmentMapper.findAll();
		return departments;
	}

	@Override
	public void insertDepartment(Department department) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateDepartment(Department department) {
		// TODO Auto-generated method stub
		
	}

}
